package edu.ar.bases.dvdstore.domainmodel.entities;

import edu.ar.bases.dvdstore.domainmodel.entities.interfaces.ILocalidad;



public class Localidad implements ILocalidad {

	private int localidadID;
	private Provincia provincia;
	private String loc;

	public Localidad(){

	}

	public void finalize() throws Throwable {

	}

	
	/* (non-Javadoc)
	 * @see edu.ar.bases.dvdstore.domainmodel.entities.ILocalidad#getLocalidadID()
	 */
	public int getLocalidadID() {
		return localidadID;
	}

	
	/* (non-Javadoc)
	 * @see edu.ar.bases.dvdstore.domainmodel.entities.ILocalidad#setLocalidadID(int)
	 */
	public void setLocalidadID(int localidadID) {
		this.localidadID = localidadID;
	}

	
	/* (non-Javadoc)
	 * @see edu.ar.bases.dvdstore.domainmodel.entities.ILocalidad#getLoc()
	 */
	public String getLoc() {
		return loc;
	}

	
	/* (non-Javadoc)
	 * @see edu.ar.bases.dvdstore.domainmodel.entities.ILocalidad#setLoc(java.lang.String)
	 */
	public void setLoc(String loc) {
		this.loc = loc;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((loc == null) ? 0 : loc.hashCode());
		result = prime * result + localidadID;
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		final Localidad other = (Localidad) obj;
		if (loc == null) {
			if (other.loc != null)
				return false;
		} else if (!loc.equals(other.loc))
			return false;
		if (localidadID != other.localidadID)
			return false;
		return true;
	}

	public Provincia getProvincia() {
		return provincia;
	}

	public void setProvincia(Provincia provincia) {
		this.provincia = provincia;
	}

}